<extend name="Public/base" />
<block name="content">
<div id="content" style="min-width:800px;">
	<div id="content-header">
		<div id="breadcrumb">
			<a href="{:U('Index/index')}" title="首页" class="tip-bottom"><i
				class="icon-home"></i> 首页</a> <a href="#" class="current">{$meta_title}</a>
		</div>
	</div>
	<div class="container-fluid search-form">
			<form class="m-filter" autocomplete="off">
				<div class="clearfix">
					<a class="pull-left btn btn-success btn-filter-show" id="j-filter-show"><span class="icon-chevron-down"></span></a>
				</div>
				
				<div class="filter-box" id="j-filter-box">
					<br>
					<!-- 时间 -->
					<div class="filter-date filter-group clearfix">
						<a class="title"><span class="icon-calendar"></span> 日期筛选</a>
					  	<div class="control-group pull-left">
					    	<div class="controls">
					      		<input type="text" id="start_time" name="start_time" readonly="readonly" class="datepicker" value="{:strip_tags(I('start_time'))}" placeholder="开始时间" style="width:120px; text-align:center;" >
					    	</div>
					  	</div>
					  	<div class="control-group pull-left" style="margin-left:15px;">
					    	<div class="controls">
					      		<input type="text" id="end_time" name="end_time" readonly="readonly" class="datepicker" value="{:strip_tags(I('end_time'))}" placeholder="结束时间" style="width:120px; text-align:center;" >
					    		<!-- 点击搜索才展示数据 -->
					    		<input type="hidden" name="checked" value="1">
					    	</div>
					  	</div>　<button type="button" id="b_time" class="btn btn-warning">清除</button>
					</div>
					<!-- /时间 -->
					<div class="clearfix btn-group">
						<a class="btn btn-success btn pull-left" id="j-filter-hide" style="margin-left:15px;"><span class="icon-chevron-up"></span></a>
						<button type="button" id="search_button" url="{:U('Service/handle')}" class="btn btn-primary btn pull-left"><span class="icon-search"></span></button>
					</div>	
				</div>		
			</form>
	</div>
	
	<div class="container-fluid">
		<div class="row-fluid">
			<div class="span12">
				<div class="widget-box">
					<div class="widget-content">
							<table id="config_table" class="table table-bordered table-striped with-check">
								<thead>
									<td rowspan="2" class="taskStatus"><span class="taskStatus" style="font-weight:bold;color: #666666; line-height:90px;" size="3">员工</span></td>
									<td colspan="4"><center><font color="#000">{$service_status[1]}</font></center></td>
								    <td colspan="4"><center><font color="#000">{$service_status[2]}</font></center></td>
								    <td colspan="4"><center><font color="#000">{$service_status[3]}</font></center></td>
								    <td colspan="4"><center><font color="#000">总计</font></center></td>
									<tr>
				                        <th width="5.88%" class="taskStatus">{$service_type[11]|htmlspecialchars}</th>
				                        <th width="5.88%" class="taskStatus">{$service_type[12]|htmlspecialchars}</th>
				                        <th width="5.88%" class="taskStatus">其他客诉</th>
				                        <th width="5.88%" class="taskStatus">总计</th>
				                        <th width="5.88%" class="taskStatus">{$service_type[11]|htmlspecialchars}</th>
				                        <th width="5.88%" class="taskStatus">{$service_type[12]|htmlspecialchars}</th>
				                        <th width="5.88%" class="taskStatus">其他客诉</th>
				                        <th width="5.88%" class="taskStatus">总计</th>
				                        <th width="5.88%" class="taskStatus">{$service_type[11]|htmlspecialchars}</th>
				                        <th width="5.88%" class="taskStatus">{$service_type[12]|htmlspecialchars}</th>
				                        <th width="5.88%" class="taskStatus">其他客诉</th>
				                        <th width="5.88%" class="taskStatus">总计</th>
				                        <th width="5.88%" class="taskStatus">{$service_type[11]|htmlspecialchars}</th>
				                        <th width="5.88%" class="taskStatus">{$service_type[12]|htmlspecialchars}</th>
				                        <th width="5.88%" class="taskStatus">其他客诉</th>
				                        <th width="5.88%" class="taskStatus">合计</th>
									</tr>
								</thead>
								<tbody>
								<notempty name="data">
									<volist name='data' id='vo'>
					                    <tr>
					                        <td class="taskStatus">{$key|getUserName|htmlspecialchars}</td>
					                        <td class="taskStatus">{$vo[1][11]|htmlspecialchars}</td>
					                        <td class="taskStatus">{$vo[1][12]|htmlspecialchars}</td>
					                        <td class="taskStatus">{$vo[1]['other']|htmlspecialchars}</td>
					                        <td class="taskStatus">{$vo[1]['count']|htmlspecialchars}</td>
					                        <td class="taskStatus">{$vo[2][11]|htmlspecialchars}</td>
					                        <td class="taskStatus">{$vo[2][12]|htmlspecialchars}</td>
					                        <td class="taskStatus">{$vo[2]['other']|htmlspecialchars}</td>
					                        <td class="taskStatus">{$vo[2]['count']|htmlspecialchars}</td>
					                        <td class="taskStatus">{$vo[3][11]|htmlspecialchars}</td>
					                        <td class="taskStatus">{$vo[3][12]|htmlspecialchars}</td>
					                        <td class="taskStatus">{$vo[3]['other']|htmlspecialchars}</td>
					                        <td class="taskStatus">{$vo[3]['count']|htmlspecialchars}</td>
					                        <td class="taskStatus">{$vo[11]|htmlspecialchars}</td>
					                        <td class="taskStatus">{$vo[12]|htmlspecialchars}</td>
					                        <td class="taskStatus">{$vo['other']|htmlspecialchars}</td>
					                        <td class="taskStatus">{$vo['count']|htmlspecialchars}</td>
					                    </tr>
					                </volist>
					                <else/>
										 <tr>
					                        <td class="taskStatus"></td>
					                        <td class="taskStatus"></td>
					                        <td class="taskStatus"></td>
					                        <td class="taskStatus"></td>
					                        <td class="taskStatus">0</td>
					                        <td class="taskStatus"></td>
					                        <td class="taskStatus"></td>
					                        <td class="taskStatus"></td>
					                        <td class="taskStatus">0</td>
					                        <td class="taskStatus"></td>
					                        <td class="taskStatus"></td>
					                        <td class="taskStatus"></td>
					                        <td class="taskStatus">0</td>
					                        <td class="taskStatus"></td>
					                        <td class="taskStatus"></td>
					                        <td class="taskStatus"></td>
					                        <td class="taskStatus">0</td>
					                    </tr>
									</notempty>
								</tbody>
							</table>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
$(function (){
	//日期控件
	$(".datepicker").datetimepicker({
		format: 'yyyy-mm-dd hh:ii', 
	    autoclose: true,
	    todayBtn: true
	});
	//条件框
	$("#j-filter-hide").click(function(){
		$("#j-filter-box").fadeOut(300);
		$("#j-filter-show").fadeIn(300);
	});
	$("#j-filter-show").click(function(){
		$("#j-filter-box").fadeIn(300);
		$(this).fadeOut(300);
	});
	//清除
	$('#b_time').click(function(){
		$('#start_time,#end_time').val('');
	});
	set_value("activity_id",'{:I('activity_id')}')
	
});

//导航高亮
highlight_subnav("{:U('Service/handle')}");//导航高亮
</script>
</block>